package com.peas.platform.module.icims.base.approve.dto;

import java.util.*;

import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.common.core.dto.BaseDto;
import com.peas.platform.framework.mybatisplus.annotation.Condition;
import com.peas.platform.framework.mybatisplus.annotation.ConditionOperator;
import lombok.Data;
import lombok.EqualsAndHashCode;

// 审批模版条件
@Data
@EqualsAndHashCode(callSuper = false)
public class ApproveConditionDto extends BaseDto {

    // 审批模版ID
    // 【审批流程表】
    @Comment(value = "审批模版ID")
    private Long approveId;

    // 审批条件业务
    // 枚举取值:ApproveBusiness
    @Comment(value = "审批条件业务", enumType = "ApproveBusiness")
    @Condition(operator = ConditionOperator.IN)
    private String approveConditionBusiness;

    // 审批条件字段
    // 枚举取值:ApproveBusinessField
    @Comment(value = "审批条件字段", enumType = "ApproveBusinessField")
    @Condition(operator = ConditionOperator.IN)
    private String approveConditionField;

    // 审批条件描述
    @Comment(value = "审批条件描述")
    private String approveConditionLabel;

    // 审批条件比较符
    @Comment(value = "审批条件比较符")
    private String approveConditionOper;

    // 审批条件值
    // 多个值用半角逗号
    @Comment(value = "审批条件值")
    private String approveConditionValues;

    //Criteria
    private Date createTimeStart;
    private Date createTimeEnd;
    private Date updateTimeStart;
    private Date updateTimeEnd;
}
